import { combineReducers } from 'redux'
import { handleActions } from 'redux-actions'
import Common from '../common/commonReduce'
import User from './user/user.reduce'
import Course from './course/course.reduce'
import { mapObject } from 'underscore'

//页面reduce集合，请注意命名规则
let reduce = {
  Common,
  User,
  Course
}
export default combineReducers(mapObject(reduce, a => handleActions(a.reduce, a.initState)))
